Skip to content

Fix downcast compiler warning in Modules/_testcapi/vectorcall.c#95729

Merged
encukou merged 1 commit intopython:mainfrom
erlend-aasland:fixup-testcapi
Aug 8, 2022
Merged

Fix downcast compiler warning in Modules/_testcapi/vectorcall.c#95729
encukou merged 1 commit intopython:mainfrom
erlend-aasland:fixup-testcapi

Conversation

@erlend-aasland
Copy link
Copy Markdown
Contributor

No description provided.

@encukou
Copy link
Copy Markdown
Member

encukou commented Aug 8, 2022

Thanks!

@erlend-aasland erlend-aasland deleted the fixup-testcapi branch August 8, 2022 09:20
@erlend-aasland
Copy link
Copy Markdown
Contributor Author

erlend-aasland commented Aug 8, 2022

Thanks!

You're welcome :) BTW, there are still two unused variable warnings. Either we split the test up: set it up in C, perform the test in Python. Or, we add a pragma to avoid the compiler from emitting a warning in release mode. I'd prefer the first, even though it is a larger change.

@encukou
Copy link
Copy Markdown
Member

encukou commented Aug 8, 2022

Hm. It seems those only appeared after they were copied to another file, is that right? Is there some existing pragma or some kind of file-based supression?

But that's just me wondering. This should be fixed, I'll continue in #95783.

iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants